package com.ticket.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ticket.entity.SeatAllocation;
import java.util.List;

public interface ISeatAllocationService extends IService<SeatAllocation> {


    public void initializeSeatAllocations(Long matchId, Long sectionId, Integer capacity);
        /**
         * 获取已占用的座位号列表
         */
    List<Integer> getOccupiedSeats(Long matchId, Long sectionId);

    /**
     * 获取下一个可用座位号
     */
    Integer getNextAvailableSeat(Long matchId, Long sectionId);

    boolean updateSeatStatus(Long matchId, Long sectionId, Integer seatNumber, String status);
    /**
     * 分配座位
     */
    boolean allocateSeat(Long matchId, Long sectionId, Integer seatNumber, String status);

    /**
     * 释放座位
     */
    boolean releaseSeat(Long matchId, Long sectionId, Integer seatNumber);

    /**
     * 获取已售座位数量
     */
    Integer getSoldSeatCount(Long matchId, Long sectionId);
}
